package cn.yunyichina.provider.base.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import cn.yunyichina.provider.framework.annotation.MyBatisRepository;
import cn.yunyichina.provider.framework.mvc.dao.BaseDao;
import cn.yunyichina.provider.iface.entity.PersonalUserRelation;

import java.util.List;

/**
*
* @Author auto_gen_by_tool
* @CreatedTime 2016-10-19 09:57:42
*/
@Repository
@MyBatisRepository
public interface PersonalUserRelationDao extends BaseDao<PersonalUserRelation>{
    List<PersonalUserRelation> selectByUserIds(@Param("userIds")List<String> userIds);
    List<PersonalUserRelation> selectByRelationUserId(@Param("relationPerUserId") String relationPerUserId);
    List<PersonalUserRelation>selectByPerUserId(@Param("perUserId") String perUserId);
    void deleteByRelationUserId(@Param("relationPerUserId") String relationPerUserId);
    void deleteByPerUserId(@Param("perUserId") String perUserId);
    void deleteByUserIdAndRelationUserId(@Param("perUserId") String perUserId,@Param("relationPerUserId") String relationPerUserId);
    PersonalUserRelation selectByPerUserIdAndRelationUserId(@Param("perUserId") String perUserId,@Param("relationPerUserId") String relationPerUserId);



}